import yagmail

def send_mail(filepath):
    mail=yagmail.SMTP(user='2331104379@qq.com',password='krxbalyycwkxdjbj'
                      ,host='smtp.qq.com')
    mail.send(to='2331104379@qq.com',subject='维度电商系统商品评论接口测试报告',contents='发送报告'
              ,attachments=filepath)